﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 备货清单/拣货清单物料主表
    /// </summary>
    [Table("PB_PickUpMain")]
    public partial class PB_PickUpMain
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 备注(弃用)
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 销售类型说明
        /// </summary>
        public String StyleName { get; set; }

        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime? DeliveryTime { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public String CusID { get; set; }
        public String CusName { get; set; }

        
        /// <summary>
        /// 客户地址
        /// </summary>
        public String CustomerAddress { get; set; }

        /// <summary>
        /// 审核说明
        /// </summary>
        public String Toexamine { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Memo { get; set; }

        /// <summary>
        /// 对应的发货通知单
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 楼号ID
        /// </summary>
        public String BuildingId { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 状态：0-待审核，1-已审核，2-开始作业，3-备货完成,4-待复核
        /// </summary>
        public Int32? Status { get; set; }

        /// <summary>
        /// 审核人ID
        /// </summary>
        public String ReviewerId { get; set; }

        /// <summary>
        /// 审核人姓名
        /// </summary>
        public String ReviewerName { get; set; }

        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime? ReviewTIme { get; set; }

         /// <summary>
         /// 更新日期
         /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 项目Id
        /// </summary>
        public String ProjectId { get; set; }
        /// <summary>
        /// 楼号Id
        /// </summary>
        public String BuildingNum { get; set; }

        /// <summary>
        /// 关联发货计划id
        /// </summary>
        public String AssociatedDelivery { get; set; }


        /// <summary>
        /// 复核人ID
        /// </summary>
        public  string ToReviewId { get; set; }

        /// <summary>
        /// 复核时间
        /// </summary>
        public DateTime? ToReviewTime { get; set; }

        /// <summary>
        /// 复核结果：0=正常；1=异常
        /// </summary>
        public int? ToReviewStatus { get; set; }
        /// <summary>
        /// 单据类型 0备货单 1调整单
        /// </summary>
        public int? OrderType { get; set; }
    }
}